package com.sounou.swagger2.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

/**
 * <p> Result </p>
 *
 * @author zengneng@hsyuntai.com
 * @date 2019/3/21 8:57
 * @copyright 版权归 HSYUNTAI 所有
 */
@Data
@ApiModel
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
public class Result {
    @NonNull
    @ApiModelProperty(value = "年龄", required = true)
    private Integer age;

    @NonNull
    @ApiModelProperty(value = "姓名", required = true)
    private String name;
}